{% extends "root/_incs/lay_root.htm" %}

{% block title %}
<title>爬URL地址 - {{ g.sys['title']}}</title>
<meta name='robots' content='noindex, nofollow'>
{% endblock %}

{% block head %}
    <h1>爬URL地址</h1>
    <p>{{ d.data.url }}</p>
{% endblock %}

{% block main %}

<div class="out">

<div class="in">
    <h2><span class="tg1"><a href="./pa">返回</a></span>爬URL地址</h2>
    <div>
        <p class="tc">
        <a href="?url=http://news.baidu.com/">news.baidu.com</a> - 
        <a href="?url=http://dg.fzg360.com/">dg.fzg360.com</a> - 
        <a href="?url=http://www.08cms.com/">www.08cms.com</a> - 
        <a href="?url=http://txmao.txjia.com/dev.php">txmao.txjia.com</a>
        </p>
        <p>URL地址 ： 
        <a href="{{ d.data.url }}" target="_blank">{{ d.data.url }}</a>
        </p>
        <p>
            <form name="fms1" method="get" action="?">
                <input type="text" name="url" id="url" value="{{ d.data.url }}" placeholder="url" style="width:80%">
                <input type="submit" name="submit" id="button" value="爬爬">
            </form>
        </p>
    </div>
</div>

<div class="in">
    <h2><span class="tg1">result</span>执行结果</h2>
    <div>
        {% for itm in d.data.res %}
        <p><a href="{{ itm.url }}" target="_blank">{{ itm.title }} --- {{ itm.url }}</a></p>
        {% endfor %}
    </div>
</div>

</div><!--end.out-->

{% endblock %}
